<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
if(session.getAttribute("account") == null){
	response.sendRedirect("index.jsp");
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <base href="<%=basePath%>" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>个人信息管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/css<s:property value="#session.account.theme"/>/echead.css"/>
	<link rel="stylesheet" type="text/css" href="css/css<s:property value="#session.account.theme"/>/dayAtAGlance.css"/>
</head>
  
<body>
<div id="menu">
   <ul >
   <a href="dayAtAGlanceAction"><li id="dayAtAGlance"></li></a>
   <a href="noteList"/><li id="notes"></li></a>
   <a href="taskList"><li id="tasks"></li></a>
   <a href="contactList"><li id="contacts"></li></a>
   <a href="appointmentList"><li id="appointments"></li></a>
   <a href="accountEditShow"><li id="myAccount"></li></a>
   <a href="logoff"><li id="logoff"></li></a>
   <a href="cgtheme?theme=1"><li id="skin1"></li></a>
   <a href="cgtheme?theme=2"><li id="skin2"></li></a>
   <a href="cgtheme?theme=3"><li id="skin3"></li></a>
   </ul> <div id="logo"></div>
</div>

<div id="main">
    <div id="secontmenu">
      <ul>
      <a href="noteForware?operate=create"><li id="newNote"></li></a>
      <a href="taskForware?operate=create"><li id="newTask"></li></a>
      <a href="contactForware?operate=create"> <li id="newContact"></li></a>
      <a href="appointmentForware?operate=create"><li id="newAppointment"></li></a>
      <a href="cgtheme?theme=1"><li id="skin1"></li></a>
      <a href="cgtheme?theme=2"><li id="skin2"></li></a>
      <a href="cgtheme?theme=3"><li id="skin3"></li></a>
      </ul>
    </div>
    <div id="content">
          <div id="title"></div>
          <div id="todayGlance">今天到期行程:</div>
          	<div id="Glancelist">
          	<s:if test="%{!tasks.isEmpty()}">
          	<s:iterator value="tasks">
                 <p><span>主题：</span><s:property value="subject" /><a href="taskForware?operate=update&task.task_id=<s:property value="task_id"/>">（修改）</a></p>
            </s:iterator>     
			</s:if> 
			<s:else>
				<p>今天尚未安排行程</p>
			</s:else>  	 
            </div>    
          
             
          <div id="todayPlane">今天的计划:</div>
          	<div id="Planelist">
          	<s:if test="%{!appointments.isEmpty()}">
          	<s:iterator value="appointments">
                 <p><span>主题：</span><s:property value="subject" /><a href="appointmentForware?operate=update&appointment.app_id=<s:property value="app_id"/>">（修改）</a></p>
            </s:iterator>     
			</s:if>  
			<s:else>
				<p>今天没有计划</p>
			</s:else> 	 
            </div>
    </div>
</div>
</body>
</html>
